Learn R Programming

tractor.base (version 1.1.0)

data types: MriImage data types

Description

Convert a numeric type code into the image data type specifier used in MriImage objects.

Usage

getDataTypeByNiftiCode(code)

Arguments

code
A numeric value indicating the data type code required. Supported values in TractoR are 2 (8 bit unsigned integer), 4 (16 bit signed integer), 8 (32 bit signed integer), 16 (32 bit floating point), 64 (64 bit floating point), 256 (8 bit signed integer), 5

Value

  • A list with the following elements
  • typeAn Rstorage mode, either integer or double.
  • sizeThe number of bytes per voxel in this data type.
  • isSignedLogical value indicating whether data values are signed.

See Also

MriImage, and the NIfTI-1 standard (http://nifti.nimh.nih.gov/nifti-1).